#include <iostream>

using namespace std;

//function prototype
int cubebyReference(int *nPtr);

int main(int argc,char* argv[]){
	
	//variable declaration
	int num = 10;
	//processing
	cout <<num << "^3 = ";
	cubebyReference(&num);
	cout <<num<<endl;
	return 0;
}

int cubebyReference(int *nPtr){
	*nPtr = *nPtr * *nPtr * *nPtr;
	return 0;
}
